import request from '@/utils/request'

// 查询精彩回顾列表
export function listReview(query) {
  return request({
    url: '/miniapp/review/list',
    method: 'get',
    params: query
  })
}
// 设置目录节点
export function setMenu(query) {
  return request({
    url: '/miniapp/review/setMenu',
    method: 'post',
    data: query
  })
}

// 查询精彩回顾详细
export function getReview(activityId) {
  return request({
    url: '/miniapp/review/' + activityId,
    method: 'get'
  })
}

// 新增精彩回顾
export function addReview(data) {
  return request({
    url: '/miniapp/review',
    method: 'post',
    data: data
  })
}

// 修改精彩回顾
export function updateReview(data) {
  return request({
    url: '/miniapp/review',
    method: 'put',
    data: data
  })
}

// 删除精彩回顾
export function delReview(activityId) {
  return request({
    url: '/miniapp/review/' + activityId,
    method: 'delete'
  })
}
